import request from '@/utils/request'

// 发送短信验证码
export const querySendSms = (data) => {
  return request('POST', '/app/sms/send', data)
}

// 发送邮件验证码
export const querySendMail = (data) => {
  return request('POST', '/app/sms/sendMail', data)
}

// 手机号登录
export const querySmsLogin = (data) => {
  return request('POST', '/app/smsLogin', data)
}

// 手机号注册
export const queryUserPhoneRegister = (data) => {
  return request('POST', '/app/userPhoneRegister', data)
}

// 邮箱登录
export const queryEmailLogin = (data) => {
  return request('POST', '/app/emailLogin', data)
}

// 邮箱注册
export const queryEmailRegister = (data) => {
  return request('POST', '/app/emailRegister', data)
}

// 退出登录
export const queryLoginOut = (data) => {
  return request('POST', '/app/logout', data)
}

// 更换邮箱
export const queryChangeEmail = (data) => {
  return request('POST', '/app/changeEmail', data)
}

// 更换手机号
export const queryChangeUserPhone = (data) => {
  return request('POST', '/app/changeUserPhone', data)
}
//验证归属地ip地址
export const queryChangeip = (data) => {
  return request('GET', '/jkkj/base/cjis', data)
}